package com.ruoyi.aimp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.aimp.mapper.Aimp_WarnreceiverMapper;
import com.ruoyi.aimp.domain.Aimp_Warnreceiver;
import com.ruoyi.aimp.service.IAimp_WarnreceiverService;

/**
 * 接收人信息Service业务层处理
 * 
 * @author fengfeng
 * @date 2022-06-18
 */
@Service
public class Aimp_WarnreceiverServiceImpl implements IAimp_WarnreceiverService 
{
    @Autowired
    private Aimp_WarnreceiverMapper aimp_WarnreceiverMapper;

    /**
     * 查询接收人信息
     * 
     * @param warnreceiverId 接收人信息主键
     * @return 接收人信息
     */
    @Override
    public Aimp_Warnreceiver selectAimp_WarnreceiverByWarnreceiverId(Long warnreceiverId)
    {
        return aimp_WarnreceiverMapper.selectAimp_WarnreceiverByWarnreceiverId(warnreceiverId);
    }

    /**
     * 查询接收人信息列表
     * 
     * @param aimp_Warnreceiver 接收人信息
     * @return 接收人信息
     */
    @Override
    public List<Aimp_Warnreceiver> selectAimp_WarnreceiverList(Aimp_Warnreceiver aimp_Warnreceiver)
    {
        return aimp_WarnreceiverMapper.selectAimp_WarnreceiverList(aimp_Warnreceiver);
    }

    /**
     * 新增接收人信息
     * 
     * @param aimp_Warnreceiver 接收人信息
     * @return 结果
     */
    @Override
    public int insertAimp_Warnreceiver(Aimp_Warnreceiver aimp_Warnreceiver)
    {
        return aimp_WarnreceiverMapper.insertAimp_Warnreceiver(aimp_Warnreceiver);
    }

    /**
     * 修改接收人信息
     * 
     * @param aimp_Warnreceiver 接收人信息
     * @return 结果
     */
    @Override
    public int updateAimp_Warnreceiver(Aimp_Warnreceiver aimp_Warnreceiver)
    {
        return aimp_WarnreceiverMapper.updateAimp_Warnreceiver(aimp_Warnreceiver);
    }

    /**
     * 批量删除接收人信息
     * 
     * @param warnreceiverIds 需要删除的接收人信息主键
     * @return 结果
     */
    @Override
    public int deleteAimp_WarnreceiverByWarnreceiverIds(Long[] warnreceiverIds)
    {
        return aimp_WarnreceiverMapper.deleteAimp_WarnreceiverByWarnreceiverIds(warnreceiverIds);
    }

    /**
     * 删除接收人信息信息
     * 
     * @param warnreceiverId 接收人信息主键
     * @return 结果
     */
    @Override
    public int deleteAimp_WarnreceiverByWarnreceiverId(Long warnreceiverId)
    {
        return aimp_WarnreceiverMapper.deleteAimp_WarnreceiverByWarnreceiverId(warnreceiverId);
    }
}
